package com.example.day04;

import java.util.Date;

public class CustomerTest {

    public static void main(String[] args) {

        Customer customer=new Customer();
        customer.setId(1);
        customer.setName("秀贤");

        customer.setPhone("111111");
        customer.setRegisterDate(new Date());
        System.out.println(customer);

        //类的全称com.example.day04.Customer@677327b6    hashcode编码
        System.out.println(customer.getClass().getName()+"@"+Integer.toHexString(customer.hashCode()));

        Customer c1=new Customer(1,"admin",null,null);
        Customer c2=new Customer(1,"admin",null,null);

        Customer c3=c1;
        System.out.println(c1==c3);

        int a=1;
       Integer b=1;
        System.out.println(b.equals(a));


        String  ss=new String("abcd");
        String  sd="abcd";
        System.out.println(ss==sd);
    }
}
